package com.woniuedu.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuedu.article.dto.ArticleDto;
import com.woniuedu.article.dto.LikeDto;
import com.woniuedu.article.entity.EduArticle;

import java.util.List;

/**
 * @Author: Why
 * @Date: 2022/4/20 10:27
 * @Description: TODO
 */
public interface EduArticleMapper extends BaseMapper<EduArticle> {
    int updateHitNums(ArticleDto articleDto);

    List<EduArticle> findAllArticle();

    int likeComment(LikeDto likeDto);

    LikeDto likeIsExsit(LikeDto likeDto);

    int unLikeComment(LikeDto likeDto);

    int likeCommentById(Long haveLikedCommentId);

    int unLikeCommentById(Long haveLikedCommentId);
}
